package uiLayer;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class ReadFromFile {
public ArrayList<String> load(){
	ArrayList<String> text = new ArrayList<>();
	try {
	    BufferedReader reader =new BufferedReader(new FileReader("file.txt"));
	    String line = reader.readLine();
	    while(line != null) {
	        
	        line = reader.readLine();
	        text.add(line);
	    }
	    reader.close();
	}
	catch(FileNotFoundException e) {
	 
	}
	catch(IOException e) {
	   
	}
	return text;

}

}
